import axios from './index'
// 个人收益
const checkEarn = function () {
  return axios.get('recordPayment/findIncome')
}
// 收益记录
const checkEarnRecord = function (pageNum, pageSize, startTime) {
  return axios.get('recordPayment/findIncomeRecord/' + pageNum + '/' + pageSize + '/' + startTime)
}
// 签约记录
const checkSignRecord = function (pageNum, pageSize) {
  return axios.get('user/findSignRecord/' + pageNum + '/' + pageSize)
}
// 任务记录
const checkTaskRecord = function (pageNum, pageSize) {
  return axios.get('taskInfo/findTaskInfo/' + pageNum + '/' + pageSize)
}
// 获取热门任务列表
const getTaskRecord = function (pageNum, pageSize, brandId) {
  return axios.get('taskInfo/findOuterTaskInfo/' + pageNum + '/' + pageSize + '/' + brandId)
}
// 任务详情
const getTaskDetail = function (taskNo) {
  return axios.get('taskInfo/findByTaskNo/' + taskNo)
}
export {
  checkEarn,
  checkEarnRecord,
  checkSignRecord,
  checkTaskRecord,
  getTaskRecord,
  getTaskDetail
}
